
  const data = [
  {
    "x": "China",
    "value": 1383220000,
    "category": "asia"
  }, {
    "x": "India",
    "value": 1316000000,
    "category": "asia"
  }, {
    "x": "United States",
    "value": 324982000,
    "category": "america"
  }, {
    "x": "Indonesia",
    "value": 263510000,
    "category": "asia"
  }, {
    "x": "Brazil",
    "value": 207505000,
    "category": "america"
  }, {
    "x": "Pakistan",
    "value": 196459000,
    "category": "asia"
  }, {
    "x": "Nigeria",
    "value": 191836000,
    "category": "africa"
  }, {
    "x": "Bangladesh",
    "value": 162459000,
    "category": "asia"
  }, {
    "x": "Russia",
    "value": 146804372,
    "category": "europe"
  }, {
    "x": "Japan",
    "value": 126790000,
    "category": "asia"
  }, {
    "x": "Mexico",
    "value": 123518000,
    "category": "america"
  }, {
    "x": "Ethiopia",
    "value": 104345000,
    "category": "africa"
  }, {
    "x": "Philippines",
    "value": 104037000,
    "category": "asia"
  }, {
    "x": "Egypt",
    "value": 93013300,
    "category": "africa"
  }, {
    "x": "Vietnam",
    "value": 92700000,
    "category": "asia"
  }, {
    "x": "Germany",
    "value": 82800000,
    "category": "europe"
  }, {
    "x": "Democratic Republic of the Congo",
    "value": 82243000,
    "category": "africa"
  }, {
    "x": "Iran",
    "value": 80135400,
    "category": "asia"
  }, {
    "x": "Turkey",
    "value": 79814871,
    "category": "asia"
  }, {
    "x": "Thailand",
    "value": 68298000,
    "category": "asia"
  }, {
    "x": "France",
    "value": 67013000,
    "category": "europe"
  }, {
    "x": "United Kingdom",
    "value": 65110000,
    "category": "europe"
  }, {
    "x": "Italy",
    "value": 60599936,
    "category": "europe"
  }, {
    "x": "Tanzania",
    "value": 56878000,
    "category": "africa"
  }, {
    "x": "South Africa",
    "value": 55908000,
    "category": "africa"
  }, {
    "x": "Myanmar",
    "value": 54836000,
    "category": "asia"
  }, {
    "x": "South Korea",
    "value": 51446201,
    "category": "asia"
  }, {
    "x": "Colombia",
    "value": 49224700,
    "category": "america"
  }, {
    "x": "Kenya",
    "value": 48467000,
    "category": "africa"
  }, {
    "x": "Spain",
    "value": 46812000,
    "category": "europe"
  }, {
    "x": "Argentina",
    "value": 43850000,
    "category": "america"
  }, {
    "x": "Ukraine",
    "value": 42541633,
    "category": "europe"
  }, {
    "x": "Sudan",
    "value": 42176000,
    "category": "africa"
  }, {
    "x": "Uganda",
    "value": 41653000,
    "category": "africa"
  }, {
    "x": "Algeria",
    "value": 41064000,
    "category": "africa"
  }, {
    "x": "Poland",
    "value": 38424000,
    "category": "europe"
  }, {
    "x": "Iraq",
    "value": 37883543,
    "category": "asia"
  }, {
    "x": "Canada",
    "value": 36541000,
    "category": "america"
  }, {
    "x": "Morocco",
    "value": 34317500,
    "category": "africa"
  }, {
    "x": "Saudi Arabia",
    "value": 33710021,
    "category": "asia"
  }, {
    "x": "Uzbekistan",
    "value": 32121000,
    "category": "asia"
  }, {
    "x": "Malaysia",
    "value": 32063200,
    "category": "asia"
  }, {
    "x": "Peru",
    "value": 31826018,
    "category": "america"
  }, {
    "x": "Venezuela",
    "value": 31431164,
    "category": "america"
  }, {
    "x": "Nepal",
    "value": 28825709,
    "category": "asia"
  }, {
    "x": "Angola",
    "value": 28359634,
    "category": "africa"
  }, {
    "x": "Ghana",
    "value": 28308301,
    "category": "africa"
  }, {
    "x": "Yemen",
    "value": 28120000,
    "category": "asia"
  }, {
    "x": "Afghanistan",
    "value": 27657145,
    "category": "asia"
  }, {
    "x": "Mozambique",
    "value": 27128530,
    "category": "africa"
  }, {
    "x": "Australia",
    "value": 24460900,
    "category": "australia"
  }, {
    "x": "North Korea",
    "value": 24213510,
    "category": "asia"
  }, {
    "x": "Cameroon",
    "value": 23248044,
    "category": "africa"
  }, {
    "x": "Ivory Coast",
    "value": 22671331,
    "category": "africa"
  }, {
    "x": "Madagascar",
    "value": 22434363,
    "category": "africa"
  }, {
    "x": "Niger",
    "value": 21564000,
    "category": "africa"
  }, {
    "x": "Sri Lanka",
    "value": 21203000,
    "category": "asia"
  }, {
    "x": "Romania",
    "value": 19760000,
    "category": "europe"
  }, {
    "x": "Burkina Faso",
    "value": 19632147,
    "category": "africa"
  }, {
    "x": "Syria",
    "value": 18907000,
    "category": "asia"
  }, {
    "x": "Mali",
    "value": 18875000,
    "category": "africa"
  }, {
    "x": "Malawi",
    "value": 18299000,
    "category": "africa"
  }, {
    "x": "Chile",
    "value": 18191900,
    "category": "america"
  }, {
    "x": "Kazakhstan",
    "value": 17975800,
    "category": "asia"
  }, {
    "x": "Netherlands",
    "value": 17121900,
    "category": "europe"
  }, {
    "x": "Ecuador",
    "value": 16737700,
    "category": "america"
  }, {
    "x": "Guatemala",
    "value": 16176133,
    "category": "america"
  }, {
    "x": "Zambia",
    "value": 15933883,
    "category": "africa"
  }, {
    "x": "Cambodia",
    "value": 15626444,
    "category": "asia"
  }, {
    "x": "Senegal",
    "value": 15256346,
    "category": "africa"
  }, {
    "x": "Chad",
    "value": 14965000,
    "category": "africa"
  }, {
    "x": "Zimbabwe",
    "value": 14542235,
    "category": "africa"
  }, {
    "x": "Guinea",
    "value": 13291000,
    "category": "africa"
  }, {
    "x": "South Sudan",
    "value": 12131000,
    "category": "africa"
  }, {
    "x": "Rwanda",
    "value": 11553188,
    "category": "africa"
  }, {
    "x": "Belgium",
    "value": 11356191,
    "category": "europe"
  }, {
    "x": "Tunisia",
    "value": 11299400,
    "category": "africa"
  }, {
    "x": "Cuba",
    "value": 11239004,
    "category": "america"
  }, {
    "x": "Bolivia",
    "value": 11145770,
    "category": "america"
  }, {
    "x": "Somalia",
    "value": 11079000,
    "category": "africa"
  }, {
    "x": "Haiti",
    "value": 11078033,
    "category": "america"
  }, {
    "x": "Greece",
    "value": 10783748,
    "category": "europe"
  }, {
    "x": "Benin",
    "value": 10653654,
    "category": "africa"
  }, {
    "x": "Czech Republic",
    "value": 10578820,
    "category": "europe"
  }, {
    "x": "Portugal",
    "value": 10341330,
    "category": "europe"
  }, {
    "x": "Burundi",
    "value": 10114505,
    "category": "africa"
  }, {
    "x": "Dominican Republic",
    "value": 10075045,
    "category": "america"
  }, {
    "x": "Sweden",
    "value": 10054100,
    "category": "europe"
  }, {
    "x": "United Arab Emirates",
    "value": 10003223,
    "category": "asia"
  }, {
    "x": "Jordan",
    "value": 9889270,
    "category": "asia"
  }, {
    "x": "Azerbaijan",
    "value": 9823667,
    "category": "asia"
  }, {
    "x": "Hungary",
    "value": 9799000,
    "category": "europe"
  }, {
    "x": "Belarus",
    "value": 9498600,
    "category": "europe"
  }, {
    "x": "Honduras",
    "value": 8866351,
    "category": "america"
  }, {
    "x": "Austria",
    "value": 8773686,
    "category": "europe"
  }, {
    "x": "Tajikistan",
    "value": 8742000,
    "category": "asia"
  }, {
    "x": "Israel",
    "value": 8690220,
    "category": "asia"
  }, {
    "x": "Switzerland",
    "value": 8417700,
    "category": "europe"
  }, {
    "x": "Papua New Guinea",
    "value": 8151300,
    "category": "australia"
  }];


  const chartData1= [
    { 
      id: 1, 
      day: '周一',
      list: [140, 120, 320, 220, 220],
      color: {
        color1: ['rgba(128, 255, 165)', 'rgba(1, 191, 236)'],
        color2: ['rgba(0, 221, 255)', 'rgba(77, 119, 255)'],
        color3: ['rgba(55, 162, 255)', 'rgba(116, 21, 219)'],
        color4: ['rgba(255, 0, 135)', 'rgba(135, 0, 157)'],
        color5: ['rgba(255, 191, 0)', 'rgba(224, 62, 76)']
      }
    },
    { 
      id: 2, 
      day: '周二',
      list: [232, 282, 132, 402, 302],
    },
    { 
      id: 3, 
      day: '周三',
      list: [101, 111, 201, 231, 181],
    },
    { 
      id: 4, 
      day: '周四',
      list: [264, 234, 334, 134, 234],
    },
    { 
      id: 5, 
      day: '周五',
      list: [90, 220, 190, 190, 210],
    },
    { 
      id: 6, 
      day: '周六',
      list: [340, 340, 130, 230, 290],
    },
    { 
      id: 7, 
      day: '周日',
      list: [250, 310, 220, 120, 150]
    }
  ];


  const dataMarket={
    dataMarkerCfg1 : {
      position: ["2014-01-03", 6.763],
      text: {
        content: "受稳健货币政策影响，协定存款利\n率居高不下,收益率达6.763%",
        style: {
          textAlign: "left",
        },
      },
    },
    dataMarkerCfg2 : {
      position: ["2013-05-31", 2.093],
      text: {
        content: "余额宝刚成立时，并未达到目标资产\n配置，故收益率较低",
        style: {
          textAlign: "left",
        },
      },
    },
    
    dataMarkerCfg3 : {
      position: ["2016-09-04", 2.321],
      autoAdjust: false,
      text: {
        content: "受积极货币政策的影响，收益率降\n到历史最低2.321%",
        style: {
          textAlign: "right",
        },
      },
      line: {
        length: 30,
      },
    },
    // style文档 https://bizcharts.net/product/BizCharts4/category/61/page/114
    dataMarkerCfg4 : {
      position: ["2016-11-02", 2.399],
      autoAdjust: false,
      // 文本style配置
      text: {
        content: "宏观经济过热，受稳健货币政策影\n响，余额宝收益率随之上升",
        style: {
          textAlign: "center",
          fill: "red",
        },
      },
      // line?: null | { style?: ShapeAttrs; length?: number };
      //线条style配置
      line: {
        length: 180,
        style: {
          stroke: "red",
        },
      },
    },
     dataMarkerCfg5 : {
      position: ["2017-03-24", 3.83],
      text: null,
      line: {
        length: 50,
      },
    },
    dataRegionCfg : {
      start: ["2016-12-02", 2.517],
      end: ["2017-03-24", 3.83],
      text: {
        content: "【关键区间】",
      },
      lineLength: 50,
    }
  }

  const firstoption = {
    title: {
      text: '堆叠区域图'
    },
    tooltip: {
      trigger: 'axis',
      axisPointer: {
          type: 'cross',
          label: {
              backgroundColor: '#6a7985'
          }
      }
    },
    legend: {
      data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
    },
    toolbox: {
      feature: {
          saveAsImage: {}
      }
    },
    grid: {
      left: '3%',
      right: '4%',
      bottom: '3%',
      containLabel: true
    },
    xAxis: [
      {
        type: 'category',
        boundaryGap: false,
        data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
      }
    ],
    yAxis: [
      {
        type: 'value'
      }
    ],
    series: [
      {
        name: '邮件营销',
        type: 'line',
        stack: '总量',
        areaStyle: {},
        emphasis: {
            focus: 'series'
        },
        data: [120, 132, 101, 134, 90, 230, 210]
      },
      {
        name: '联盟广告',
        type: 'line',
        stack: '总量',
        areaStyle: {},
        emphasis: {
            focus: 'series'
        },
        data: [220, 182, 191, 234, 290, 330, 310]
      },
      {
        name: '视频广告',
        type: 'line',
        stack: '总量',
        areaStyle: {},
        emphasis: {
            focus: 'series'
        },
        data: [150, 232, 201, 154, 190, 330, 410]
      },
      {
        name: '直接访问',
        type: 'line',
        stack: '总量',
        areaStyle: {},
        emphasis: {
            focus: 'series'
        },
        data: [320, 332, 301, 334, 390, 330, 320]
      },
      {
        name: '搜索引擎',
        type: 'line',
        stack: '总量',
        label: {
            show: true,
            position: 'top'
        },
        areaStyle: {},
        emphasis: {
            focus: 'series'
        },
        data: [820, 932, 901, 934, 1290, 1330, 1320]
      }
  ]
  };
  const pieoption = {
    legend: {
        top: 'bottom'
    },
    toolbox: {
        show: true,
        feature: {
            mark: {show: true},
            dataView: {show: true, readOnly: false},
            restore: {show: true},
            saveAsImage: {show: true}
        }
    },
    series: [
        {
            name: '面积模式',
            type: 'pie',
            radius: [50, 250],
            center: ['50%', '50%'],
            roseType: 'area',
            itemStyle: {
                borderRadius: 8
            },
            data: [
                {value: 40, name: 'rose 1'},
                {value: 38, name: 'rose 2'},
                {value: 32, name: 'rose 3'},
                {value: 30, name: 'rose 4'},
                {value: 28, name: 'rose 5'},
                {value: 26, name: 'rose 6'},
                {value: 22, name: 'rose 7'},
                {value: 18, name: 'rose 8'}
            ]
        }
    ]
  };
  var data2 = [];
  for (var i = 0; i <= 100; i++) {
      var theta = i / 100 * 360;
      var r = 5 * (1 + Math.sin(theta / 180 * Math.PI));
      data2.push([r, theta]);
  }
  const ploaroption = {
    title: {
        text: '极坐标双数值轴'
    },
    legend: {
        data: ['line']
    },
    polar: {},
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross'
        }
    },
    angleAxis: {
        type: 'value',
        startAngle: 0
    },
    radiusAxis: {
    },
    series: [{
        coordinateSystem: 'polar',
        name: 'line',
        type: 'line',
        data: data2
    }]
  };

  var labelRight = {
    position: 'right'
  };
  const negaoption= {
    title: {
        text: '交错正负轴标签',
        subtext: 'From ExcelHome',
        sublink: 'http://e.weibo.com/1341556070/AjwF2AgQm'
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {            // 坐标轴指示器，坐标轴触发有效
            type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
        }
    },
    grid: {
        top: 80,
        bottom: 30
    },
    xAxis: {
        type: 'value',
        position: 'top',
        splitLine: {
            lineStyle: {
                type: 'dashed'
            }
        }
    },
    yAxis: {
        type: 'category',
        axisLine: {show: false},
        axisLabel: {show: false},
        axisTick: {show: false},
        splitLine: {show: false},
        data: ['ten', 'nine', 'eight', 'seven', 'six', 'five', 'four', 'three', 'two', 'one']
    },
    series: [
        {
            name: '生活费',
            type: 'bar',
            stack: '总量',
            label: {
                show: true,
                formatter: '{b}'
            },
            data: [
                {value: -0.07, label: labelRight},
                {value: -0.09, label: labelRight},
                0.2, 0.44,
                {value: -0.23, label: labelRight},
                0.08,
                {value: -0.17, label: labelRight},
                0.47,
                {value: -0.36, label: labelRight},
                0.18
            ]
        }
    ]
  };
  const cateoption = {
    tooltip: {
        trigger: 'axis',
        axisPointer: {            // Use axis to trigger tooltip
            type: 'shadow'        // 'shadow' as default; can also be 'line' or 'shadow'
        }
    },
    legend: {
        data: ['Direct', 'Mail Ad', 'Affiliate Ad', 'Video Ad', 'Search Engine']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: {
        type: 'value'
    },
    yAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    series: [
        {
            name: 'Direct',
            type: 'bar',
            stack: 'total',
            label: {
                show: true
            },
            emphasis: {
                focus: 'series'
            },
            data: [320, 302, 301, 334, 390, 330, 320]
        },
        {
            name: 'Mail Ad',
            type: 'bar',
            stack: 'total',
            label: {
                show: true
            },
            emphasis: {
                focus: 'series'
            },
            data: [120, 132, 101, 134, 90, 230, 210]
        },
        {
            name: 'Affiliate Ad',
            type: 'bar',
            stack: 'total',
            label: {
                show: true
            },
            emphasis: {
                focus: 'series'
            },
            data: [220, 182, 191, 234, 290, 330, 310]
        },
        {
            name: 'Video Ad',
            type: 'bar',
            stack: 'total',
            label: {
                show: true
            },
            emphasis: {
                focus: 'series'
            },
            data: [150, 212, 201, 154, 190, 330, 410]
        },
        {
            name: 'Search Engine',
            type: 'bar',
            stack: 'total',
            label: {
                show: true
            },
            emphasis: {
                focus: 'series'
            },
            data: [820, 832, 901, 934, 1290, 1330, 1320]
        }
    ]
};


  module.exports = { data,chartData1,dataMarket,firstoption,pieoption,ploaroption,negaoption,cateoption } 